.class public final enum Lorg/teleal/cling/model/message/UpnpRequest$Method;
.super Ljava/lang/Enum;
.source "UpnpRequest.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/teleal/cling/model/message/UpnpRequest;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4019
    name = "Method"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum<",
        "Lorg/teleal/cling/model/message/UpnpRequest$Method;",
        ">;"
    }
.end annotation


# static fields
.field private static final synthetic $VALUES:[Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum GET:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum MSEARCH:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum NOTIFY:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum POST:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum SUBSCRIBE:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum UNKNOWN:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field public static final enum UNSUBSCRIBE:Lorg/teleal/cling/model/message/UpnpRequest$Method;

.field private static byName:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lorg/teleal/cling/model/message/UpnpRequest$Method;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private httpName:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 10

    .line 1
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v1, 0x0

    const-string v2, "GET"

    invoke-direct {v0, v2, v1, v2}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->GET:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 2
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v2, 0x1

    const-string v3, "POST"

    invoke-direct {v0, v3, v2, v3}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->POST:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 3
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v3, 0x2

    const-string v4, "NOTIFY"

    invoke-direct {v0, v4, v3, v4}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->NOTIFY:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 4
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v4, 0x3

    const-string v5, "MSEARCH"

    const-string v6, "M-SEARCH"

    invoke-direct {v0, v5, v4, v6}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->MSEARCH:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 5
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v5, 0x4

    const-string v6, "SUBSCRIBE"

    invoke-direct {v0, v6, v5, v6}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->SUBSCRIBE:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 6
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v6, 0x5

    const-string v7, "UNSUBSCRIBE"

    invoke-direct {v0, v7, v6, v7}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->UNSUBSCRIBE:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 7
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v7, 0x6

    const-string v8, "UNKNOWN"

    invoke-direct {v0, v8, v7, v8}, Lorg/teleal/cling/model/message/UpnpRequest$Method;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->UNKNOWN:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    const/4 v8, 0x7

    new-array v8, v8, [Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 8
    sget-object v9, Lorg/teleal/cling/model/message/UpnpRequest$Method;->GET:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    aput-object v9, v8, v1

    sget-object v1, Lorg/teleal/cling/model/message/UpnpRequest$Method;->POST:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    aput-object v1, v8, v2

    sget-object v1, Lorg/teleal/cling/model/message/UpnpRequest$Method;->NOTIFY:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    aput-object v1, v8, v3

    sget-object v1, Lorg/teleal/cling/model/message/UpnpRequest$Method;->MSEARCH:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    aput-object v1, v8, v4

    sget-object v1, Lorg/teleal/cling/model/message/UpnpRequest$Method;->SUBSCRIBE:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    aput-object v1, v8, v5

    sget-object v1, Lorg/teleal/cling/model/message/UpnpRequest$Method;->UNSUBSCRIBE:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    aput-object v1, v8, v6

    aput-object v0, v8, v7

    sput-object v8, Lorg/teleal/cling/model/message/UpnpRequest$Method;->$VALUES:[Lorg/teleal/cling/model/message/UpnpRequest$Method;

    .line 9
    new-instance v0, Lorg/teleal/cling/model/message/UpnpRequest$Method$1;

    invoke-direct {v0}, Lorg/teleal/cling/model/message/UpnpRequest$Method$1;-><init>()V

    sput-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->byName:Ljava/util/Map;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    .line 2
    iput-object p3, p0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->httpName:Ljava/lang/String;

    return-void
.end method

.method public static getByHttpName(Ljava/lang/String;)Lorg/teleal/cling/model/message/UpnpRequest$Method;
    .locals 1

    if-nez p0, :cond_0

    .line 1
    sget-object p0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->UNKNOWN:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    return-object p0

    .line 2
    :cond_0
    sget-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->byName:Ljava/util/Map;

    invoke-virtual {p0}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object p0

    invoke-interface {v0, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    if-eqz p0, :cond_1

    goto :goto_0

    .line 3
    :cond_1
    sget-object p0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->UNKNOWN:Lorg/teleal/cling/model/message/UpnpRequest$Method;

    :goto_0
    return-object p0
.end method

.method public static valueOf(Ljava/lang/String;)Lorg/teleal/cling/model/message/UpnpRequest$Method;
    .locals 1

    .line 1
    const-class v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object p0

    check-cast p0, Lorg/teleal/cling/model/message/UpnpRequest$Method;

    return-object p0
.end method

.method public static values()[Lorg/teleal/cling/model/message/UpnpRequest$Method;
    .locals 1

    .line 1
    sget-object v0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->$VALUES:[Lorg/teleal/cling/model/message/UpnpRequest$Method;

    invoke-virtual {v0}, [Lorg/teleal/cling/model/message/UpnpRequest$Method;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lorg/teleal/cling/model/message/UpnpRequest$Method;

    return-object v0
.end method


# virtual methods
.method public getHttpName()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lorg/teleal/cling/model/message/UpnpRequest$Method;->httpName:Ljava/lang/String;

    return-object v0
.end method
